import '@/utils/request'
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

// 获取机构下某币种的人民币汇率
const getRmbRate = params => {
    return httpGet({
        url: '/config/cy/getRmbRate',
        params
    })
}
//审核
const audit = params =>{
    return httpPost({
        url: '/turnoversettle/audit/audit',
        params
    })
}
//保存提交按钮
const commit = params =>{
    return httpPost({
        url: '/turnoversettle/audit/commit',
        params
    })
}
//获取审核历史
const PccgetAuditHistoryInfo = params => {
    return httpPost({
        url: '/turnoversettle/audit/getAuditHistory',
        params
    })
}
//获取流程按钮显示状态
const PccSetgetCurrentUnitInfo = params =>{
    return httpPost({
        url: '/turnoversettle/audit/getCurrentUnitInfo',
        params
    })
}
//撤回
const undoworkt = params =>{
    return httpPost({
        url: '/turnoversettle/audit/undoAudit',
        params
    })
}
//作废
const nullify = params =>{
    return httpPost({
        url: '/turnoversettle/audit/nullify',
        params
    })
}
export {
    getRmbRate,
    audit,
    commit,
    PccgetAuditHistoryInfo,
    undoworkt,
    nullify,
    PccSetgetCurrentUnitInfo,
}
